package com.ms.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ms.pojo.Resign_apply;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface UserResignMapper extends BaseMapper<Resign_apply> {

    /**
     * 插入一条离职申请记录
     *
     * @param resignApply 离职申请对象
     * @return 影响行数
     */
    @Insert("INSERT INTO resign_apply (emp_id, approver_id, resign_type, expected_leave_date, actual_leave_date, reason, apply_status, apply_time) VALUES (#{empId}, #{approverId}, #{resignType}, #{expectedLeaveDate}, #{actualLeaveDate}, #{reason}, #{applyStatus}, #{applyTime})")
    int insertResignApply(Resign_apply resignApply);

}
